package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 冶金实验室样品信息对象 metallurgical_sample
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
public class MetallurgicalSample extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 样品ID（主键） */
    private Long sampleId;

    /** 样品编号 */
    @Excel(name = "样品编号")
    private String sampleCode;

    /** 样品类型 */
    @Excel(name = "样品类型")
    private String sampleType;

    /** 材料牌号 */
    @Excel(name = "材料牌号")
    private String materialGrade;

    /** 样品来源 */
    @Excel(name = "样品来源")
    private String source;

    /** 接收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "接收时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveTime;

    /** 状态（0-待检测，1-检测中，2-已完成，3-报废） */
    @Excel(name = "状态", readConverterExp = "0=-待检测，1-检测中，2-已完成，3-报废")
    private Long status;

    public void setSampleId(Long sampleId) 
    {
        this.sampleId = sampleId;
    }

    public Long getSampleId() 
    {
        return sampleId;
    }

    public void setSampleCode(String sampleCode) 
    {
        this.sampleCode = sampleCode;
    }

    public String getSampleCode() 
    {
        return sampleCode;
    }

    public void setSampleType(String sampleType) 
    {
        this.sampleType = sampleType;
    }

    public String getSampleType() 
    {
        return sampleType;
    }

    public void setMaterialGrade(String materialGrade) 
    {
        this.materialGrade = materialGrade;
    }

    public String getMaterialGrade() 
    {
        return materialGrade;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setReceiveTime(Date receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime() 
    {
        return receiveTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sampleId", getSampleId())
            .append("sampleCode", getSampleCode())
            .append("sampleType", getSampleType())
            .append("materialGrade", getMaterialGrade())
            .append("source", getSource())
            .append("receiveTime", getReceiveTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
